package org.wlc.demov1;

import org.wlc.demov1.Stock;

import java.util.Date;

/**
 * @author 王立朝
 * @date 2022/5/17
 * @description:
 */
public class ActivityController {
    /**
     * 从接口中查询活动信息
     *
     * @param id
     * @return
     */
    public Activity queryActivity(Long id) {
        Activity activity = new Activity();
        activity.setId(1000L);
        activity.setName("图书High乐");
        activity.setDesc("图书优惠券分享激励分享活动第二期");
        activity.setStartTime(new Date());
        activity.setStopTime(new Date());
        activity.setStock(new Stock(1000, 1));
        return activity;
    }

}
